#include "stl.h"
#include "solution.h"

int main(int argc, char *argv[]){
//    nums = [1,0,1,0,1], goal = 2, ans=4
//    nums = [0,0,0,0,0], goal = 0, ans=15
    vector<int> nums[] = {
        { 1,0,1,0,1 },
        { 0,0,0,0,0 },
    };
    int goal[] = {2, 0};
    Solution sln;
    for(int i=0; i<size(nums); i++){
        print("nums=", nums[i], "\n")
        print("ans:", sln.numSubarraysWithSum(nums[i], goal[i]), "\n")
    }
    print("\n------ main exit ------\n")
    return 0;
}
